package com.example.mybatis_plus_use.controller;

import com.example.mybatis_plus_use.service.CategoryService;
import com.example.mybatis_plus_use.service.OrdersService;
import com.example.mybatis_plus_use.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
public class BaseController {
    @Autowired
    UserService userService;
    @Autowired
    OrdersService ordersService;// 注入用户服务
    @Autowired
    CategoryService categoryService;
    @Autowired
    PasswordEncoder passwordEncoder;  // 注入密码加密器
}
